Optimal. Leaf size=169 \[ -\frac {(A+i B) \sqrt {\cot (c+d x)} (a+b \tan (c+d x))^n \left (\frac {b \tan (c+d x)}{a}+1\right )^{-n} F_1\left (-\frac {1}{2};1,-n;\frac {1}{2};-i \tan (c+d x),-\frac {b \tan (c+d x)}{a}\right )}{d}-\frac {(A-i B) \sqrt {\cot (c+d x)} (a+b \tan (c+d x))^n \left (\frac {b \tan (c+d x)}{a}+1\right )^{-n} F_1\left (-\frac {1}{2};1,-n;\frac {1}{2};i \tan (c+d x),-\frac {b \tan (c+d x)}{a}\right )}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.49, antiderivative size = 169, normalized size of antiderivative = 1.00, number of steps used = 10, number of rules used = 6, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.182, Rules used = {4241, 3603, 3602, 130, 511, 510} \[ -\frac {(A+i B) \sqrt {\cot (c+d x)} (a+b \tan (c+d x))^n \left (\frac {b \tan (c+d x)}{a}+1\right )^{-n} F_1\left (-\frac {1}{2};1,-n;\frac {1}{2};-i \tan (c+d x),-\frac {b \tan (c+d x)}{a}\right )}{d}-\frac {(A-i B) \sqrt {\cot (c+d x)} (a+b \tan (c+d x))^n \left (\frac {b \tan (c+d x)}{a}+1\right )^{-n} F_1\left (-\frac {1}{2};1,-n;\frac {1}{2};i \tan (c+d x),-\frac {b \tan (c+d x)}{a}\right )}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 130
Rule 510
Rule 511
Rule 3602
Rule 3603
Rule 4241
Rubi steps
\begin {align*} \int \cot ^{\frac {3}{2}}(c+d x) (a+b \tan (c+d x))^n (A+B \tan (c+d x)) \, dx &=\left (\sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}\right ) \int \frac {(a+b \tan (c+d x))^n (A+B \tan (c+d x))}{\tan ^{\frac {3}{2}}(c+d x)} \, dx\\ &=\frac {1}{2} \left ((A-i B) \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}\right ) \int \frac {(1+i \tan (c+d x)) (a+b \tan (c+d x))^n}{\tan ^{\frac {3}{2}}(c+d x)} \, dx+\frac {1}{2} \left ((A+i B) \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}\right ) \int \frac {(1-i \tan (c+d x)) (a+b \tan (c+d x))^n}{\tan ^{\frac {3}{2}}(c+d x)} \, dx\\ &=\frac {\left ((A-i B) \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}\right ) \operatorname {Subst}\left (\int \frac {(a+b x)^n}{(1-i x) x^{3/2}} \, dx,x,\tan (c+d x)\right )}{2 d}+\frac {\left ((A+i B) \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}\right ) \operatorname {Subst}\left (\int \frac {(a+b x)^n}{(1+i x) x^{3/2}} \, dx,x,\tan (c+d x)\right )}{2 d}\\ &=\frac {\left ((A-i B) \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}\right ) \operatorname {Subst}\left (\int \frac {\left (a+b x^2\right )^n}{x^2 \left (1-i x^2\right )} \, dx,x,\sqrt {\tan (c+d x)}\right )}{d}+\frac {\left ((A+i B) \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}\right ) \operatorname {Subst}\left (\int \frac {\left (a+b x^2\right )^n}{x^2 \left (1+i x^2\right )} \, dx,x,\sqrt {\tan (c+d x)}\right )}{d}\\ &=\frac {\left ((A-i B) \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)} (a+b \tan (c+d x))^n \left (1+\frac {b \tan (c+d x)}{a}\right )^{-n}\right ) \operatorname {Subst}\left (\int \frac {\left (1+\frac {b x^2}{a}\right )^n}{x^2 \left (1-i x^2\right )} \, dx,x,\sqrt {\tan (c+d x)}\right )}{d}+\frac {\left ((A+i B) \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)} (a+b \tan (c+d x))^n \left (1+\frac {b \tan (c+d x)}{a}\right )^{-n}\right ) \operatorname {Subst}\left (\int \frac {\left (1+\frac {b x^2}{a}\right )^n}{x^2 \left (1+i x^2\right )} \, dx,x,\sqrt {\tan (c+d x)}\right )}{d}\\ &=-\frac {(A+i B) F_1\left (-\frac {1}{2};1,-n;\frac {1}{2};-i \tan (c+d x),-\frac {b \tan (c+d x)}{a}\right ) \sqrt {\cot (c+d x)} (a+b \tan (c+d x))^n \left (1+\frac {b \tan (c+d x)}{a}\right )^{-n}}{d}-\frac {(A-i B) F_1\left (-\frac {1}{2};1,-n;\frac {1}{2};i \tan (c+d x),-\frac {b \tan (c+d x)}{a}\right ) \sqrt {\cot (c+d x)} (a+b \tan (c+d x))^n \left (1+\frac {b \tan (c+d x)}{a}\right )^{-n}}{d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [F] time = 8.15, size = 0, normalized size = 0.00 \[ \int \cot ^{\frac {3}{2}}(c+d x) (a+b \tan (c+d x))^n (A+B \tan (c+d x)) \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 1.79, size = 0, normalized size = 0.00 \[ {\rm integral}\left ({\left (B \cot \left (d x + c\right ) \tan \left (d x + c\right ) + A \cot \left (d x + c\right )\right )} {\left (b \tan \left (d x + c\right ) + a\right )}^{n} \sqrt {\cot \left (d x + c\right )}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (B \tan \left (d x + c\right ) + A\right )} {\left (b \tan \left (d x + c\right ) + a\right )}^{n} \cot \left (d x + c\right )^{\frac {3}{2}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 1.56, size = 0, normalized size = 0.00 \[ \int \left (\cot ^{\frac {3}{2}}\left (d x +c \right )\right ) \left (a +b \tan \left (d x +c \right )\right )^{n} \left (A +B \tan \left (d x +c \right )\right )\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (B \tan \left (d x + c\right ) + A\right )} {\left (b \tan \left (d x + c\right ) + a\right )}^{n} \cot \left (d x + c\right )^{\frac {3}{2}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int {\mathrm {cot}\left (c+d\,x\right )}^{3/2}\,\left (A+B\,\mathrm {tan}\left (c+d\,x\right )\right )\,{\left (a+b\,\mathrm {tan}\left (c+d\,x\right )\right )}^n \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________